@layout("/common/_container.html"){
<div class="layui-card">
  <div class="layui-card-body">
   <div class="layui-form" lay-filter="">
    	<div class="layui-form-item">
    		<label class="layui-form-label">登录名</label>
    		<div class="layui-input-inline">
    			<div class="layui-form-mid">${admin.account}</div>
    		</div>
      </div>
    	<div class="layui-form-item">
    		<label class="layui-form-label">邮箱账号</label>
    		<div class="layui-input-inline">
    			 <input type="text" name="email" lay-verify="email" value="${admin.email}" id="email" autocomplete="off" class="layui-input">	
    		</div>
      </div>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit onclick="updateInfo()">确定</button>
        </div>
      </div>
    </div>
    
  </div>
</div>
<script>
layui.config({
	base: Feng.ctxPath +'/static/layuiadmin/' //静态资源所在路径
}).extend({
	index: 'lib/index' //主入口模块
}).use(['index', 'form','laydate','util','verify'], function(){
    var $ = layui.$
    ,form = layui.form
    ,laydate = layui.laydate
    ,util = layui.util
});

function updateInfo(){
    var loading2 = layer.load(2);
	var ajax = new $ax(Feng.ctxPath + "/admin/info", function (data) {
        layer.close(loading2); //关闭弹层
        Feng.success("修改成功!");
    }, function (data) {
        layer.close(loading2); //关闭弹层
        Feng.error("修改失败!" + data.responseJSON.message + "!");
    },true);
    ajax.set("email");
    ajax.start();
}
</script>
@}

